package edu.nf.homework.handler;

import edu.nf.homework.annotation.Inject;
import edu.nf.homework.container.PaymentFactory;

import java.lang.reflect.Field;

/**
 * @author CSY
 * @date 2025 - 04 - 16
 * 字段注入处理器
 */
public class FieldInjectHandler {

    public void handle(Object instance, PaymentFactory factory){
        for (Field field : instance.getClass().getDeclaredFields()) {
            field.isAnnotationPresent(Inject.class);
        }
    }
}
